﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Quanlyvanban.aspx.cs" Inherits="WebHousingInfo.Quanlyvanban" %>
<%@ Register Src="~/Controls/Header.ascx" TagName="HD" TagPrefix="Header" %>
<%@ Register Src="~/Controls/ManagerUser_left.ascx" TagName="UserLeft" TagPrefix="Left" %>
<%@ Register Src="~/Controls/ManagerUser_Right.ascx" TagName="UserRight" TagPrefix="Right" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MenuDuoi" TagPrefix="MenuFooter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Quản lý văn bản đã đăng</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="uni_wrapper">
	    <div id="uni_main">
	        <Header:HD ID="Header" runat="server" />
		    <div id="content" class="clearfix">
			    <div id="group_6">
				    <Left:UserLeft ID="UserLeft" runat="server" />
				    <div style="margin-bottom:5px; float:right; width:542px;">
				        <a href="Home.aspx">Trang chủ</a> >> <a href="#">Quản lý cá nhân</a> >> <a href="Quanlyvanban.aspx">Quản lý văn bản đã đăng</a>
				    </div>
			        <div class="title_tab_center">
					    <ul>
						    <li class="selected"><a href="DangTin.aspx">Đăng tin Nhà đất</a></li>
						    <li><a href="DangTinDoanhNghiep.aspx">Đăng Tin Doanh nghiệp</a></li>
					    </ul>
				    </div>	
				    <div id="group_542" style="margin-top:5px;">				        						 
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                            GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
                            onrowcommand="GridView1_RowCommand" PageSize="15" Width="100%">
                            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#E3EAEB" />
                            <Columns>
                                <asp:BoundField DataField="TextHouseID" HeaderText="ID" Visible="False" />
                                <asp:TemplateField HeaderText="Tên Văn Bản">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="tenvanban" runat="server" CommandName="Xem" 
                                            Text='<%# Eval("Title") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="headerquanlyvanban" />
                                    <ItemStyle CssClass="quanlyvanban" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="CreatedDate" HeaderText="Ngày Tạo" 
                                    DataFormatString="{0:dd/MM/yyyy}">
                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ViewCount" HeaderText="Lượt Xem">
                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="DownloadCount" HeaderText="Lượt Download">
                                    <HeaderStyle HorizontalAlign="Center" Width="90px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Download">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="download" runat="server" CommandName="download">Download</asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Trạng Thái">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" Enabled="false" runat="server" Checked='<%# Eval("IsActive") %>' />
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Label ID="url" runat="server" Text='<%# Eval("UrlDownload") %>' 
                                            Visible="False"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#7C6F57" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>   
				    </div>
			    </div>
			    <Right:UserRight ID="UserRight" runat="server" />	
		    </div>
	    </div>	
	    <MenuFooter:MenuDuoi ID="MenuFooter" runat="server" />
    </div>
    </form>
</body>
</html>